var express = require('express'),
    helper = require('../../libs/helper'),
    logger = require('../../libs/logger').logger,
    router = express.Router(),
    
    notesController = require('./notesController');


router.route('')
.get(notesController.getPageNotes(["ID", "Title", "CreateTime", "UpdateTime"]))
.post(notesController.addNote);

router.route('/:id([0-9]+)')
.put(notesController.updateNote)
.get(notesController.getNote)
.delete(notesController.deleteNote);


module.exports = router;